<?php
  $yhendus=new mysqli("localhost", "if13", "ifikad", "if13_nils");
  if(isSet($_REQUEST["eesnimi"])){
		$kask=$yhendus->prepare("INSERT INTO pidu (eesnimi, perekonnanimi, email) VALUES (?, ?, ?)");
		echo $yhendus->error;
			$kask->bind_param("sss", $_REQUEST["eesnimi"], $_REQUEST["perekonnanimi"], $_REQUEST["email"]);
			$kask->execute();
			}
			$yhendus->close();